.class Lrexsee/device/RexseeWallpaper$1;
.super Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;
.source "RexseeWallpaper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/device/RexseeWallpaper;->cropAndSet(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/device/RexseeWallpaper;

.field private final synthetic val$failAlert:Ljava/lang/String;

.field private final synthetic val$successAlert:Ljava/lang/String;

.field private final synthetic val$wallpaper:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/device/RexseeWallpaper;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/device/RexseeWallpaper$1;->this$0:Lrexsee/device/RexseeWallpaper;

    iput-object p2, p0, Lrexsee/device/RexseeWallpaper$1;->val$wallpaper:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/device/RexseeWallpaper$1;->val$successAlert:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/device/RexseeWallpaper$1;->val$failAlert:Ljava/lang/String;

    .line 72
    invoke-direct {p0}, Lrexsee/core/browser/clazz/ActivityResult$ActivityResultListener;-><init>()V

    return-void
.end method


# virtual methods
.method public run(ILandroid/content/Intent;)V
    .locals 3
    .param p1, "resultCode"    # I
    .param p2, "resultIntent"    # Landroid/content/Intent;

    .prologue
    const-string v2, ""

    .line 75
    const/4 v0, -0x1

    if-ne p1, v0, :cond_1

    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->this$0:Lrexsee/device/RexseeWallpaper;

    iget-object v1, p0, Lrexsee/device/RexseeWallpaper$1;->val$wallpaper:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/device/RexseeWallpaper;->set(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 76
    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->val$successAlert:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->val$successAlert:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 77
    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->this$0:Lrexsee/device/RexseeWallpaper;

    # getter for: Lrexsee/device/RexseeWallpaper;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v0}, Lrexsee/device/RexseeWallpaper;->access$0(Lrexsee/device/RexseeWallpaper;)Lrexsee/core/browser/Browser;

    move-result-object v0

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, p0, Lrexsee/device/RexseeWallpaper$1;->val$successAlert:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;)V

    .line 84
    :cond_0
    :goto_0
    return-void

    .line 80
    :cond_1
    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->val$failAlert:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->val$failAlert:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 81
    iget-object v0, p0, Lrexsee/device/RexseeWallpaper$1;->this$0:Lrexsee/device/RexseeWallpaper;

    # getter for: Lrexsee/device/RexseeWallpaper;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v0}, Lrexsee/device/RexseeWallpaper;->access$0(Lrexsee/device/RexseeWallpaper;)Lrexsee/core/browser/Browser;

    move-result-object v0

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, p0, Lrexsee/device/RexseeWallpaper$1;->val$failAlert:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lrexsee/core/application/RexseeApplication;->alert(Ljava/lang/String;)V

    goto :goto_0
.end method
